<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="element-ui/lib/theme-chalk/index.css">
    <script src="js/vue.js" type="text/javascript"></script>
    <script src="js/axios-0.18.0.js" type="text/javascript"></script>
    <script src="element-ui/lib/index.js"></script>
    <script src="js/qs.js"></script>
</head>
<body>
<div id="app">　
    <el-select v-model="value" placeholder="请选择">
        <el-option
                v-for="item in options"
                :key="item.provinceId"
                :label="item.name"
                :value="item.provinceId">
        </el-option>
    </el-select>
</div>

<script>
    new Vue({
        el:"#app",
        data:{
            options: [],
            value: ''
        },
        methods:{

        },
        created:function (){
            axios.post("ProvinceController/findAll")
                .then(resp=>{
                    this.options = resp.data;
                }).catch(e=>{
                    console.log(e)
            })
        }

    });
</script>
</body>
</html>